﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace jkingzhu.Common
{
    public class DaTaoKeApiHelper
    {
        #region 网站专用API接口 返回空的列表==============
        /// <summary>
        /// 网站专用API接口	http://api.dataoke.com/index.php?r=goodsLink/www&type=www_quan&appkey=d9e05cc871&v=2&page=
        /// </summary>
        /// <returns></returns>
        public static string get_www_quan(int page=1)
        {
            string result = Utils.HttpGet("http://api.dataoke.com/index.php?r=goodsLink/www&type=www_quan&appkey=d9e05cc871&v=2&page="+page);
            return result;
        }
        #endregion

        #region QQ群发专用API接口 返回空的列表============
        /// <summary>
        /// QQ群发专用API接口	http://api.dataoke.com/index.php?r=goodsLink/qq&type=qq_quan&appkey=d9e05cc871&v=2
        /// </summary>
        /// <returns></returns>
        public static string get_qq_quan(int page=1)
        {
            string result = Utils.HttpGet("http://api.dataoke.com/index.php?r=goodsLink/qq&type=qq_quan&appkey=d9e05cc871&v=2&page="+page);
            return result;
        }
        #endregion

        #region 全站领券商品API接口 ======================
        /// <summary>
        /// 全站领券商品API接口	http://api.dataoke.com/index.php?r=Port/index&type=total&appkey=d9e05cc871&v=2&page=1
        /// </summary>
        /// <returns></returns>
        public static string get_total(int page=1)
        {
            string result = Utils.HttpGet("http://api.dataoke.com/index.php?r=Port/index&type=total&appkey=d9e05cc871&v=2&page="+page);
            return result;
        }
        #endregion

        #region TOP100人气榜API接口=======================
        /// <summary>
        /// TOP100人气榜API接口	http://api.dataoke.com/index.php?r=Port/index&type=top100&appkey=d9e05cc871&v=2
        /// </summary>
        /// <returns></returns>
        public static string get_top100(int page=1)
        {
            string result = Utils.HttpGet("http://api.dataoke.com/index.php?r=Port/index&type=top100&appkey=d9e05cc871&v=2&page="+page);
            return result;
        }
        #endregion

        #region 实时跑量榜API接口=========================
        /// <summary>
        /// 实时跑量榜API接口	http://api.dataoke.com/index.php?r=Port/index&type=paoliang&appkey=d9e05cc871&v=2
        /// </summary>
        /// <returns></returns>
        public static string get_paoliang(int page=1)
        {
            string result = Utils.HttpGet("http://api.dataoke.com/index.php?r=Port/index&type=paoliang&appkey=d9e05cc871&v=2&page="+page);
            return result;
        }
        #endregion

        #region 单品详情API接口===========================
        /// <summary>
        /// 单品详情API接口	http://api.dataoke.com/index.php?r=port/index&appkey=d9e05cc871&v=2&id=xxx
        /// </summary>
        /// <returns></returns>
        public static string get_item_detail(string id)
        {
            string result = Utils.HttpGet("http://api.dataoke.com/index.php?r=port/index&appkey=d9e05cc871&v=2&id="+id);
            return result;
        }
        #endregion
    }
}
